/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.farmcode.core.runtime.event;

import com.farmcode.api.runtime.BaseEvent;


/**
 *
 * @author oiprado
 */
public class EventFactory {
    public static BaseEvent getInstance(String eventName){
        BaseEvent event = null;    
        if(eventName.equals("-c"))
            event = new CompileEvent();
        else if(eventName.equals("-mt"))
            event = new ObjectsEvent();
        else if(eventName.equals("-cl"))
            event = new ColumnEvent();
        else if(eventName.equals("-d"))
            event = new DownLoadEvent();
        else if(eventName.equals("-cn"))
            event = new CleanEvent();
        return event;
    }
}
